
import { Navigate, createBrowserRouter } from "react-router-dom";
import App from "../App";
import Sdk from "../component/sdk/Sdk";

import AllAdd from '../component/sdk/AddAll'
import AddCell from '../component/sdk/AddCell'
import Cityselect from "../component/publics/Cityselect";

// import App from "../component/jjt/App";
import Myapp from "../component/jjt/MyApp";
import Mycollect4 from "../component/jjt/MyCollection";
import "../scss/jjt/myApp.scss"

import Appointment from "../component/jjt/Appointment";
import Reservation from "../component/jjt/Reservation";
import Myhomes4 from "../component/jjt/Myhomes";
import AppointmentRecord4 from "../component/jjt/AppointmentRecord";
import ReservationRecord4 from "../component/jjt/ReservationRecord";
import History4 from "../component/jjt/History";
import Personal4 from "../component/jjt/Personal";
import Booking_add from "../component/lwl/Booking_add";

import Lwl_Home from '../component/lwl/Lwl_Home'
import Lwl_Detail from '../component/lwl/Lwl_Detial'
import Lwl_LandLord from '../component/lwl/Lwl_LandLord'
import Lwl_question from '../component/lwl/Question'
import Lwl_Answer from "../component/lwl/Lwl_Answer";
import Eve from '../component/lwl/EveryAns'
import Sear from '../component/lwl/Sear'

import AppHome from "../component/lxj/AppHome";
import Login from "../component/lxj/Login"
import Register from "../component/lxj/Register"
import Search from "../component/lxj/Search"
import Around from '../component/lwl/周边房源'



import History from '../component/lwl/History'

// import App from "../App";

// 路由配置
let router = createBrowserRouter([
    {
        path: "/",

        element: <App />,

        children: [
            {
                path: "/sdk",
                element: <Sdk />,
            },
            {
                path: "/home",
                element: <Lwl_Home />,
            },
            {
                path: "/",
                element: <Navigate to='/home' />,
            }
        ]
    },
    {

        path: "/addall",
        element: <AllAdd />
    },
    {

        path: "/addcell",
        element: <AddCell />
    },
    {
        path: "/city",
        element: <Cityselect />
    },
    {
        path: "/myapp",
        element: <Myapp />,
    },
    {
        path: "/mycollect4",
        element: <Mycollect4 />,
    },

    {
        path: "/appointment",
        element: <Appointment />,

    },
    {
        path: "/reservation",
        element: <Reservation />,

    },
    {
        path: "/myhomes4",
        element: <Myhomes4 />,

    },
    {
        path: "/appointmentrecord4",
        element: <AppointmentRecord4 />,

    },
    {
        path: "/reservationrecord4",
        element: <ReservationRecord4 />,

    },
    {
        path: "/history4",
        element: <History4 />,

    },
    {
        path: "/personal4",
        element: <Personal4 />,

    },

    {
        path: "/booking_add",
        element: <Booking_add />,
    },

    {
        path: '/detail',
        element: <Lwl_Detail />,
    },
    {
        path: '/landlord',
        element: <Lwl_LandLord />,
    },
    {
        path: '/question',
        element: <Lwl_question />
    },
    {
        path: '/answer',
        element: <Lwl_Answer />,
    },
    {
        path: '/everyans',
        element: <Eve />,
    },
    {
        path: '/sear',
        element: <Sear />,
    },

    {
        path:'/around',
        element:<Around/>,
    },

    //吕鑫杰
    {
        path: "/AppHome",
        element: <AppHome />,
    },
    {
        path: "/Login",
        element: <Login />,
    },
    {
        path: "/Register",
        element: <Register />,
    },
    {
        path: "/Search",
        element: <Search />,
    },
    {
        path: '/history',
        element: <History />,
    }

])





export default router